package io.renren.controller;


import io.renren.annotation.Login;
import io.renren.common.utils.R;
import io.renren.service.VipCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/api")
public class vipCardController {

    @Autowired
    VipCardService vipCardService;
    /**
     * 列表
     */
    @PostMapping("setVip")
    @Login
    // @RequiresPermissions("school:school:list")
    public R getUniversitys(@RequestBody Map<String, Object> params,@RequestAttribute("userId") Integer userId) {
      //  List l = schoolMajorService.getUniversitys(params);
        params.put("userId",userId);

        return vipCardService.setVip(params);
    }

}
